<template>
  <view class="page">
    <!-- <TopBar :colorVal="colorVal" :background="topBarBg" :title="topBarTitle"></TopBar>

    <PMain @scroll="scroll" v-show="pageIndex == 0"></PMain>
    <PMovie v-show="pageIndex == 1"></PMovie>

    <TabBar @tapTab="tapTab"></TabBar> -->
  </view>
</template>

<script setup>
import { ref } from 'vue'

import Taro from '@tarojs/taro'
// import TopBar from '@/components/top-bar'
// import TabBar from '@/components/tab-bar'
// import PMain from '@/components/p-main'
// import PMovie from '@/components/p-movie'

// const colorValList = ref([255, 0, 0])
// const colorVal = ref(255)
// const scroll = e => {
//   const ev = e > 127.5 ? 0 : 127.5 - e
//   colorVal.value = parseInt(ev * 2)
// }

// const pageIndex = ref(0)
// const topBarBg = ref()
// const topBarTitle = ref('特惠电影票')

// const tapTab = (n, o) => {
//   colorValList.value[o] = colorVal.value
//   colorVal.value = colorValList.value[n]
//   switch (n) {
//     case 0:
//       topBarTitle.value = '特惠电影票'
//       topBarBg.value = 'linear-gradient(to bottom right, #ffa7b5, #ff5177)'
//       break
//     case 1:
//       topBarTitle.value = ''
//       topBarBg.value = '#FFF'
//       break
//     case 2:
//       break
//   }
//   pageIndex.value = n
// }

setTimeout(() => {
  Taro.navigateTo({
    url: '/pages/cinema-seat/index'
  })
}, 500)
</script>

<style lang="scss"></style>
